home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
zbpc_460.zip
/
UTILITY.EXE
/
EQUIP.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-03-26
|
1KB
|
24 lines
'For identification of equipment in system outside of that available with
'CARDTYPE for video cards and FRE for availability, free size and total
'size of floppy, hard drive and other storage devices.
DEFINTA-Z
DEF SEG = 0 : COLOR ,31 : CLS
Byte1 = PEEK (&H410)
Byte2 = PEEK (&H411)
Byte1$ = RIGHT$ (BIN$ (Byte1),8)
Byte2$ = RIGHT$ (BIN$ (Byte2),8)
MathCoprocessor$ = MID$(Byte1$,7,1)
IF MathCoprocessor$ = "1" PRINT "Math Coprocessor Installed"
Serial$ = MID$(Byte2$,5,3)
IF Serial$ = "000" PRINT "No Serial Port Installed"
IF Serial$ = "001" PRINT "One Serial Port Installed"
IF Serial$ = "010" PRINT "Two Serial Ports Installed"
IF Serial$ = "011" PRINT "Three Serial Ports Installed"
IF Serial$ = "100" PRINT "Four Serial Ports Installed"
Printer$ = LEFT$(Byte2$,2)
IF Printer$ = "00" PRINT "No Printer Port Installed"
IF Printer$ = "01" PRINT "One Printer Port Installed"
IF Printer$ = "10" PRINT "Two Printer Ports Installed"
IF Printer$ = "11" PRINT "Three Printer Ports Installed"